{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-header">编辑数据</div>
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">* 商户名称</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="shopname" value="{$data.shopname|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">* 联系电话</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="mobile" value="{$data.mobile|default=''}" autocomplete="off" placeholder="请输入手机号" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">证件类型</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <select name="cert_type">
                        <option value="">请选择证件类型</option>
                        <option value="1" {if condition="isset($data) and $data.cert_type eq 1"}selected="selected"{/if}>身份证</option>
                        <option value="2" {if condition="isset($data) and $data.cert_type eq 2"}selected="selected"{/if}>营业执照</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">证件号码</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="cert_number" value="{$data.cert_number|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">证件图片</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="cert_image" value="{$data.cert_image|default=''}" autocomplete="off" placeholder="" class="layui-input">
                    <button type="button" class="layui-btn layui-btn-primary layui-btn-position ajax-images"><i class="fa fa-file-image-o"></i> 选择图片</button>          
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">管理员ID</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="admin_id" value="{$data.admin_id|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">认证情况</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <select name="is_auth">
                        <option value="">请选择认证情况</option>
                        <option value="0" {if condition="isset($data) and $data.is_auth eq 0"}selected="selected"{/if}>未审核</option>
                        <option value="1" {if condition="isset($data) and $data.is_auth eq 1"}selected="selected"{/if}>信息待审核</option>
                        <option value="2" {if condition="isset($data) and $data.is_auth eq 2"}selected="selected"{/if}>审核不通过</option>
                        <option value="99" {if condition="isset($data) and $data.is_auth eq 99"}selected="selected"{/if}>审核通过</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">过期时间</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="exp_time" autocomplete="off" value="{$data.exp_time|default=''}" placeholder="" class="layui-input layuiDate">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
